﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003F1 RID: 1009
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DressAvatarSkinCsReq : IMessage<DressAvatarSkinCsReq>, IMessage, IEquatable<DressAvatarSkinCsReq>, IDeepCloneable<DressAvatarSkinCsReq>, IBufferMessage
	{
		// Token: 0x17000CF6 RID: 3318
		// (get) Token: 0x06002D34 RID: 11572 RVA: 0x0007CBF0 File Offset: 0x0007ADF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DressAvatarSkinCsReq> Parser
		{
			get
			{
				return DressAvatarSkinCsReq._parser;
			}
		}

		// Token: 0x17000CF7 RID: 3319
		// (get) Token: 0x06002D35 RID: 11573 RVA: 0x0007CBF7 File Offset: 0x0007ADF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DressAvatarSkinCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CF8 RID: 3320
		// (get) Token: 0x06002D36 RID: 11574 RVA: 0x0007CC09 File Offset: 0x0007AE09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DressAvatarSkinCsReq.Descriptor;
			}
		}

		// Token: 0x06002D37 RID: 11575 RVA: 0x0007CC10 File Offset: 0x0007AE10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressAvatarSkinCsReq()
		{
		}

		// Token: 0x06002D38 RID: 11576 RVA: 0x0007CC18 File Offset: 0x0007AE18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressAvatarSkinCsReq(DressAvatarSkinCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.skinId_ = other.skinId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002D39 RID: 11577 RVA: 0x0007CC49 File Offset: 0x0007AE49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressAvatarSkinCsReq Clone()
		{
			return new DressAvatarSkinCsReq(this);
		}

		// Token: 0x17000CF9 RID: 3321
		// (get) Token: 0x06002D3A RID: 11578 RVA: 0x0007CC51 File Offset: 0x0007AE51
		// (set) Token: 0x06002D3B RID: 11579 RVA: 0x0007CC59 File Offset: 0x0007AE59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17000CFA RID: 3322
		// (get) Token: 0x06002D3C RID: 11580 RVA: 0x0007CC62 File Offset: 0x0007AE62
		// (set) Token: 0x06002D3D RID: 11581 RVA: 0x0007CC6A File Offset: 0x0007AE6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkinId
		{
			get
			{
				return this.skinId_;
			}
			set
			{
				this.skinId_ = value;
			}
		}

		// Token: 0x06002D3E RID: 11582 RVA: 0x0007CC73 File Offset: 0x0007AE73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DressAvatarSkinCsReq);
		}

		// Token: 0x06002D3F RID: 11583 RVA: 0x0007CC81 File Offset: 0x0007AE81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DressAvatarSkinCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.SkinId == other.SkinId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002D40 RID: 11584 RVA: 0x0007CCC0 File Offset: 0x0007AEC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.SkinId != 0U)
			{
				num ^= this.SkinId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002D41 RID: 11585 RVA: 0x0007CD18 File Offset: 0x0007AF18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002D42 RID: 11586 RVA: 0x0007CD20 File Offset: 0x0007AF20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002D43 RID: 11587 RVA: 0x0007CD2C File Offset: 0x0007AF2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.SkinId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.SkinId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002D44 RID: 11588 RVA: 0x0007CD88 File Offset: 0x0007AF88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.SkinId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkinId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002D45 RID: 11589 RVA: 0x0007CDE0 File Offset: 0x0007AFE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DressAvatarSkinCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.SkinId != 0U)
			{
				this.SkinId = other.SkinId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002D46 RID: 11590 RVA: 0x0007CE30 File Offset: 0x0007B030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002D47 RID: 11591 RVA: 0x0007CE3C File Offset: 0x0007B03C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SkinId = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040011EB RID: 4587
		private static readonly MessageParser<DressAvatarSkinCsReq> _parser = new MessageParser<DressAvatarSkinCsReq>(() => new DressAvatarSkinCsReq());

		// Token: 0x040011EC RID: 4588
		private UnknownFieldSet _unknownFields;

		// Token: 0x040011ED RID: 4589
		public const int AvatarIdFieldNumber = 6;

		// Token: 0x040011EE RID: 4590
		private uint avatarId_;

		// Token: 0x040011EF RID: 4591
		public const int SkinIdFieldNumber = 10;

		// Token: 0x040011F0 RID: 4592
		private uint skinId_;
	}
}
